﻿#pragma once
#include "wmpplayer4.h"
#include "wmpcontrols.h"
#include "wmpsettings.h"

// UninstallDlg 对话框

class UninstallDlg : public CDialogEx
{
	DECLARE_DYNAMIC(UninstallDlg)

public:
	UninstallDlg(CWnd* pParent = nullptr);   // 标准构造函数
	virtual ~UninstallDlg();

// 对话框数据
#ifdef AFX_DESIGN_TIME
	enum { IDD = IDD_DLGUninstall };
#endif

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV 支持

	DECLARE_MESSAGE_MAP()
public:
	virtual BOOL OnInitDialog();
	void Unstall();
	static UINT __cdecl UnstallAsync(LPVOID lparam);
	void UnstallHandleAsync();
	void SetPos(short pos, short total);
	void SetProgressPos(int pos, int total);
//	CButton btnOK;

private:
	CWinThread* uninstallThread;
	HANDLE versionHandle;

//	CWMPPlayer4	m_player;
//	CWMPControls playerControl;
//	CWMPSettings playerSettings;
	//下载进度
	CProgressCtrl uninstallProgress;

};
